package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-05-24
 * Time: 20:50
 */
public class Dog extends Animal{

    public Dog(String name ,int age) {
        super(name,age);
    }

    @Override
    public void eat() {
        System.out.println(name + "吃狗粮");
    }

    public void bark() {
        System.out.println(name + "在汪汪叫");
    }
}
